package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.HaDoctorsMapper;
import com.ruoyi.system.domain.HaDoctors;
import com.ruoyi.system.service.IHaDoctorsService;

/**
 * 医生列表Service业务层处理
 * 
 * @author 鲍小伟
 * @date 2025-11-11
 */
@Service
public class HaDoctorsServiceImpl implements IHaDoctorsService 
{
    @Autowired
    private HaDoctorsMapper haDoctorsMapper;

    /**
     * 查询医生列表
     * 
     * @param did 医生列表主键
     * @return 医生列表
     */
    @Override
    public HaDoctors selectHaDoctorsByDid(Long did)
    {
        return haDoctorsMapper.selectHaDoctorsByDid(did);
    }

    /**
     * 查询医生列表列表
     * 
     * @param haDoctors 医生列表
     * @return 医生列表
     */
    @Override
    public List<HaDoctors> selectHaDoctorsList(HaDoctors haDoctors)
    {
        return haDoctorsMapper.selectHaDoctorsList(haDoctors);
    }

    /**
     * 新增医生列表
     * 
     * @param haDoctors 医生列表
     * @return 结果
     */
    @Override
    public int insertHaDoctors(HaDoctors haDoctors)
    {
        return haDoctorsMapper.insertHaDoctors(haDoctors);
    }

    /**
     * 修改医生列表
     * 
     * @param haDoctors 医生列表
     * @return 结果
     */
    @Override
    public int updateHaDoctors(HaDoctors haDoctors)
    {
        return haDoctorsMapper.updateHaDoctors(haDoctors);
    }

    /**
     * 批量删除医生列表
     * 
     * @param dids 需要删除的医生列表主键
     * @return 结果
     */
    @Override
    public int deleteHaDoctorsByDids(Long[] dids)
    {
        return haDoctorsMapper.deleteHaDoctorsByDids(dids);
    }

    /**
     * 删除医生列表信息
     * 
     * @param did 医生列表主键
     * @return 结果
     */
    @Override
    public int deleteHaDoctorsByDid(Long did)
    {
        return haDoctorsMapper.deleteHaDoctorsByDid(did);
    }
}
